<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:54:"D:\Wamp\wamp64\www\canny/app/index\view\index\map.html";i:1533007220;s:51:"D:\Wamp\wamp64\www\canny/app/index\view\layout.html";i:1533280490;s:55:"D:\Wamp\wamp64\www\canny/app/index\view\layout\top.html";i:1531444258;s:58:"D:\Wamp\wamp64\www\canny/app/index\view\layout\header.html";i:1533377879;s:58:"D:\Wamp\wamp64\www\canny/app/index\view\layout\footer.html";i:1533285613;}*/ ?>
<!--<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Access-Control-Allow-Origin" content="https://demo.onebase.org" />
    <?php echo parse_string_val($seo_info, get_defined_vars()) ?>
    <link href="__STATIC__/module/common/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="__STATIC__/module/common/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="__STATIC__/module/index/css/docs.css" rel="stylesheet">
    <link href="__STATIC__/module/index/css/onebase.css" rel="stylesheet">
    
    <script type="text/javascript" src="__STATIC__/module/common/jquery/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="__STATIC__/module/common/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__STATIC__/module/index/js/common.js"></script>
</head>
<body>-->
<!DOCTYPE html>
<html lang="en" style="user-select: none">
    <head>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <meta charset="UTF-8">
        <meta name="Author" content="">
        <title>title</title>
        <link rel="stylesheet" href="__STATIC__/css/reset.css">
        <link rel="stylesheet" href="__STATIC__/css/header.css">
        <link rel="stylesheet" href="__STATIC__/css/footer.css">
        <link rel="stylesheet" href="__STATIC__/css/hover.css">
        <link rel="stylesheet" href="__STATIC__/css/media-footer.css">
        <link rel="stylesheet" href="__STATIC__/css/media-header.css">
        <link rel="stylesheet" href="__STATIC__/css/btn.css">
    </head>


    <!--头部导航栏-->
    <header id="topnav" class="w100">
        <h1 class="h100 fl">
            <a class="d-b h100 w100" href="/index/index/index.html"></a>
        </h1>
        <div class="right fr p-r">
            <ul class="nav fl">
                <?php if(!(empty($plist) || (($plist instanceof \think\Collection || $plist instanceof \think\Paginator ) && $plist->isEmpty()))): if(is_array($plist) || $plist instanceof \think\Collection || $plist instanceof \think\Paginator): $i = 0; $__LIST__ = $plist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li class="fl"><a class="<?php if($column_id == $vo['id']): ?>on<?php endif; ?>" href="<?php echo url($vo['url']); ?>"><?php echo $vo['name']; ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; else: ?>
                <li class="fl "><a class="on" href="/index/index/index.html">首页</a></li>
                <li class="fl "><a class="" href="/index/about/aboutcontent.html">关于我们</a></li>
                <li class="fl "><a class="" href="/index/bussiness/bussinessgmp.html">业务范围</a></li>
                <li class="fl "><a class="" href="/index/index/news.html">新闻资讯</a></li>
                <li class="fl "><a class="" href="/index/index/resourcesidea.html">资源中心</a></li>
                <li class="fl "><a class="" href="/index/index/jointalent.html">加入我们</a></li>
                <?php endif; ?>
            </ul>
            <div class="more fl p-r">
                <p class="fl"><span class="c-p on">中</span> | <span class="c-p ">EN</span></p>
                <span class="fl c-p" ></span>
                <span class="fl c-p"></span>
                <p class="email p-a d-n"><?php echo $contact['email']; ?></p>
                <form method='post' action="<?php echo url('index/search'); ?>">
                    <input class="p-a d-n" type="text" placeholder="搜索" name="search">
                    <button type="submit" hidden="hidden" id='search-btn'></button>
                </form>
            </div>
            <?php if(!(empty($plist) || (($plist instanceof \think\Collection || $plist instanceof \think\Paginator ) && $plist->isEmpty()))): if(is_array($plist) || $plist instanceof \think\Collection || $plist instanceof \think\Paginator): $i = 0; $__LIST__ = $plist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($i > 1): ?>
            <ul class="about ab-u p-a of-h d-n">
                <?php if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vt): $mod = ($i % 2 );++$i;?>
                <li class=""><a href="/index/about/aboutcontent.html"><?php echo $vt['name']; ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <?php endif; endforeach; endif; else: echo "" ;endif; else: ?>
             <ul class="about ab-u p-a of-h d-n">
                <li class=""><a href="/index/about/aboutcontent.html">我们的团队</a></li>
                <li class=""><a href="/index/about/aboutteacher.html">咨询师展示</a></li>
                <li class=""><a href="/index/about/aboutcustomer.html">我们的客户</a></li>
                <li class=""><a href="/index/about/aboutresult.html">我们的业绩</a></li>
                <li class=""><a href="/index/about/abouthistory.html">我们的历史</a></li>
                <li class=""><a href="/index/about/aboutculture.html">我们的文化</a></li>
            </ul>
            <ul class="about ab-b p-a of-h d-n">
                <li class=""><a href="/index/bussiness/bussinessgmp.html">GMP符合与认证</a></li>
                <li class=""><a href="/index/bussiness/bussinesscfda.html">国内注册</a></li>
                <li class=""><a href="/index/bussiness/bussinessfda.html">国际注册</a></li>
                <li class=""><a href="/index/bussiness/bussinessmah.html">（MAH）托管服务</a></li>
                <li class=""><a href="/index/bussiness/bussinessdurg.html">药政事务顾问</a></li>
                <li class=""><a href="/index/bussiness/bussinessmeeting.html">会议&培训</a></li>
            </ul>
            <ul class="about ab-n p-a of-h d-n">
                <li class=""><a href="/index/index/news.html">公司新闻</a></li>
                <li class=""><a href="/index/index/news/category_id/15.html">行业动态</a></li>
                <li class=""><a href="/index/index/news/category_id/16.html">法律法规</a></li>
            </ul>
            <ul class="about ab-r p-a of-h d-n">
                <li class=""><a href="/index/index/resourceschange.html">技术转让</a></li>
                <li class=""><a href="/index/index/resourcesidea.html">康利华观点</a></li>
            </ul>
            <ul class="about ab-j p-a of-h d-n">
                <li class=""><a href="/index/index/jointalent.html">人才招聘</a></li>
                <li class=""><a href="/index/index/jointalent.html">联系我们</a></li>
                <li class=""><a href="/index/index/jointalent.html">在线地图</a></li>
            </ul>
            <?php endif; ?>
            <div class="phonebtn p-a"></div>
        </div>

    </header>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="h100">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta name="keywords" content="百度地图,百度地图API，百度地图自定义工具，百度地图所见即所得工具" />
    <meta name="description" content="百度地图API自定义地图，帮助用户在可视化操作下生成百度地图" />
    <link rel="stylesheet" href="__STATIC__/css/reset.css">
    <title>百度地图API自定义地图</title>
    <!--引用百度地图API-->
    <style type="text/css">
        html,body{margin:0;padding:0;}
        .iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap}
        .iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word}
    </style>
    <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
</head>

<body class="h100">
<!--百度地图容器-->
<div style="width:100%;height:100%;border:#ccc solid 1px;" id="dituContent"></div>
</body>
<script src="__STATIC__/js/font.js"></script>
<script type="text/javascript">
    //创建和初始化地图函数：
    function initMap(){
        createMap();//创建地图
        setMapEvent();//设置地图事件
        addMapControl();//向地图添加控件
        addMarker();//向地图中添加marker
    }

    //创建地图函数：
    function createMap(){
        var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
        var point = new BMap.Point(116.497791,39.919547);//定义一个中心点坐标
        map.centerAndZoom(point,17);//设定地图的中心点和坐标并将地图显示在地图容器中
        window.map = map;//将map变量存储在全局
    }

    //地图事件设置函数：
    function setMapEvent(){
        map.enableDragging();//启用地图拖拽事件，默认启用(可不写)
        map.enableScrollWheelZoom();//启用地图滚轮放大缩小
        map.enableDoubleClickZoom();//启用鼠标双击放大，默认启用(可不写)
        map.enableKeyboard();//启用键盘上下左右键移动地图
    }

    //地图控件添加函数：
    function addMapControl(){
        //向地图中添加缩放控件
        var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
        map.addControl(ctrl_nav);
        //向地图中添加缩略图控件
        var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});
        map.addControl(ctrl_ove);
        //向地图中添加比例尺控件
        var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});
        map.addControl(ctrl_sca);
    }

    //标注点数组
    var markerArr = [{title:"我的标记",content:"北京市朝阳区东四环中路60号<br/>远洋国际中心C座2405号",point:"116.497791|39.919547",isOpen:1,icon:{w:21,h:21,l:0,t:0,x:6,lb:5}}
    ];
    //创建marker
    function addMarker(){
        for(var i=0;i<markerArr.length;i++){
            var json = markerArr[i];
            var p0 = json.point.split("|")[0];
            var p1 = json.point.split("|")[1];
            var point = new BMap.Point(p0,p1);
            var iconImg = createIcon(json.icon);
            var marker = new BMap.Marker(point,{icon:iconImg});
            var iw = createInfoWindow(i);
            var label = new BMap.Label(json.title,{"offset":new BMap.Size(json.icon.lb-json.icon.x+10,-20)});
            marker.setLabel(label);
            map.addOverlay(marker);
            label.setStyle({
                borderColor:"#808080",
                color:"#333",
                cursor:"pointer"
            });

            (function(){
                var index = i;
                var _iw = createInfoWindow(i);
                var _marker = marker;
                _marker.addEventListener("click",function(){
                    this.openInfoWindow(_iw);
                });
                _iw.addEventListener("open",function(){
                    _marker.getLabel().hide();
                })
                _iw.addEventListener("close",function(){
                    _marker.getLabel().show();
                })
                label.addEventListener("click",function(){
                    _marker.openInfoWindow(_iw);
                })
                if(!!json.isOpen){
                    label.hide();
                    _marker.openInfoWindow(_iw);
                }
            })()
        }
    }
    //创建InfoWindow
    function createInfoWindow(i){
        var json = markerArr[i];
        var iw = new BMap.InfoWindow("<b class='iw_poi_title' title='" + json.title + "'>" + json.title + "</b><div class='iw_poi_content'>"+json.content+"</div>");
        return iw;
    }
    //创建一个Icon
    function createIcon(json){
        var icon = new BMap.Icon("http://map.baidu.com/image/us_mk_icon.png", new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)})
        return icon;
    }

    initMap();//创建和初始化地图
</script>
</html>
<footer id="footer" class="w100">
    <div class="tel clearfix m-a">
        <div class="left fl">
            <ul>
                <li>
                    <i class="d-ib"></i>
                    <p class="d-ib">全国热线：</p>
                    <p>0086-10-59648219/17/18</p>
                </li>
                <li>
                    <i class="d-ib"></i>
                    <p class="d-ib">传真：0086-10-59648220</p>
                </li>
                <li>
                    <i class="d-ib"></i>
                    <p class="d-ib">邮  箱：bjcanny@china-canny.com</p>
                </li>
                <li>
                    <i class="d-ib"></i>
                    <p class="d-ib">地  址：中国•北京市朝阳区东四环中路60号远洋国际中心C座2405-2406室</p>
                </li>
            </ul>
        </div>
        <div class="right fr">
            <div>
                <img class="w100 h100" src="__STATIC__/img/weixin.png">
            </div>
            <p>「有观点」的订阅号</p>
        </div>
       
    </div>
    <p class="m-a">fgagafadsffgaf</p>
</footer>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="__STATIC__/js/index.js"></script>
<script src="__STATIC__/js/font.js"></script>